/* @flow */
'use strict';

var React = require('react-native');

var {
	StyleSheet,
	View,
	TextInput
} = React;

var TextInputView = React.createClass({

	getInitialState: function() {
		return {
			text: ''
		};
	},
	render: function() {
		return (
			<View style={styles.contentStyle}>
				<TextInput
    				style={{height: 40, borderColor: 'gray', borderWidth: 1}}
    				autoCapitalize='characters'
    				defaultValue='这是一个输入框'
    				placeholder='这是一个placeholder'
  				/>
			</View>
		);
	}
});


var styles = StyleSheet.create({
	contentStyle: {
		flex: 1,
		marginTop: 64
	}
});


module.exports = TextInputView;